package com.daotingli.backendprograms.Controller.Retriever;

import com.daotingli.backendprograms.Service.Retriever.RetrieverService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

@RestController
public class RetrieverController {
    @Autowired
    private RetrieverService retrieverService;
    @RequestMapping(
            path = "/retriever",
            method = RequestMethod.POST,
            params = {"username","password","identity","userphone"})
    public Map getRetriever(
            @RequestParam("username") String username,
            @RequestParam("password") String password,
            @RequestParam("identity") String identity,
            @RequestParam("userphone") String userphone){

       return retrieverService.Retriever(username,password,identity,userphone);
    }
}
